/**
 * 
 */
package group.anglers.om.core.mapping.models;

import group.anglers.om.core.annotations.Column;
import group.anglers.om.core.annotations.ColumnPK;
import group.anglers.om.core.annotations.Model;
import group.anglers.om.core.model.composites.UserId;

import java.util.Date;
/**
 * @author an.pham
 * 
 */
@Model(mapping="USER")
public class User {
	@ColumnPK
	private UserId userId;
	@Column
	private Long departmentId;
	@Column
	private String name;
	@Column
	private Integer age;
	@Column
	private Date createdDate;

	public UserId getUserId() {
		return userId;
	}

	public void setUserId(UserId userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}

}
